import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import mainPage from '@/page/main-page';
import detailPage from '@/page/blog-detail-page';
import manageLoginPage from '@/page/manage/login';
import manageMainPage from '@/page/manage/main';
import manageEditPage from '@/page/manage/editPage';

Vue.use(Router)

let testRoutes = [
];

let pageRoutes = [
  {
    path: '/HelloWorld',
    name: 'HelloWorld',
    component: HelloWorld
  },
  {
    path: '/detailPage',
    name: 'blogDetail',
    component:detailPage
  },
  {
    path: '/',
    name: 'mainPage',
    component: mainPage
  },
  {
    path: '/manage/main',
    name: 'manageMain',
    component:manageMainPage
  },
  {
    path: '/manage/edit',
    name: 'manageEdit',
    component:manageEditPage
  },
  {
    path: '/manage/login',
    name: 'manageLogin',
    component: manageLoginPage
  }
];

export default new Router(
  {
    routes: testRoutes.concat(pageRoutes)
  })
